using Common;
using MongoDB.Bson;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AnesSystem.Models
{
    public class AnesRecordTemplateModel : ObservableObject
    {
        private ObjectId _id;
        private DateTime createTime;
        private DateTime editTime;
        private string name;
        private string accountId;
        private List<ItemInfoModel> itemInfoList = new List<ItemInfoModel>();

        public ObjectId Id
        {
            get
            {
                return _id;
            }

            set
            {
                _id = value;
                RaisePropertyChanged("Id");
            }
        }
        public DateTime CreateTime
        {
            get
            {
                return createTime;
            }

            set
            {
                createTime = value;
                RaisePropertyChanged("CreateTime");
            }
        }
        public DateTime EditTime
        {
            get
            {
                return editTime;
            }

            set
            {
                editTime = value;
                RaisePropertyChanged("EditTime");
            }
        }
        public string Name
        {
            get
            {
                return name;
            }

            set
            {
                name = value;
                RaisePropertyChanged("Name");
            }
        }
        public string AccountId
        {
            get
            {
                return accountId;
            }

            set
            {
                accountId = value;
                RaisePropertyChanged("AccountId");
            }
        }
        public List<ItemInfoModel> ItemInfoList
        {
            get
            {
                return itemInfoList;
            }

            set
            {
                itemInfoList = value;
                RaisePropertyChanged("ItemInfoList");
            }
        }

    }
}